<?php

switch ($_GET['action']) {
    case 'run':
        $changeset = (int) $_GET['changeset'];
        $version = $updater->getVersion();
        $updater->runChangeset($changeset);
        break;

    case 'update':
        $changeset = (int) $_GET['changeset'];
        $updater->runToChangeset($changeset);
        break;
}